﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XNALibrary.Interfaces;

namespace XNALibrary
{
    public class PointLight : IPointLight
    {
        Vector3 position;
        float intensity;
        Color color;
        public bool IsOn {get; set;}

        public PointLight(Vector3 pos)
        {
            position = pos;
            intensity = 2f;
            color = Color.White;

            IsOn = true;
        }

        public PointLight(Vector3 pos, float intens, Color col)
            : this(pos)
        {
            intensity = intens;
            color = col;
        }

        #region IPointLight Members

        public Vector3 Position
        {
            get { return position; }
        }

        public float Intensity
        {
            get { return intensity; }
        }

        public Color Color
        {
            get { return color; }
            set { value = color; }
        }

        #endregion
    }
}
